<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group(['namespace' => 'Auth'],function (){
   Route::get('/login','AuthController@login');
   Route::post('/_login','AuthController@_login');
   Route::get('/register','AuthController@register');
   Route::post('/_register','AuthController@_register');
});

Route::group(['namespace' => 'Index'],function (){
    Route::get('/','IndexController@index');
    Route::get('/class','IndexController@class');
});

Route::group(['namespace' => 'Admin'],function (){
    Route::get('/adminLogin','AdminController@adminLogin');
    Route::post('/_adminLogin','AdminController@_adminLogin');
    Route::get('/addBookClass','AdminController@addBookClass');
});